package com.wayne;

public class Animal {
  private String height; // 高度
  private float weight; // 体重

  public  void eat() {
    // 性能监控代码
    long start = System.currentTimeMillis();
    System.out.println("I can eat ...");
    // 性能监控代码
    long end = System.currentTimeMillis();
    System.out.println("执行时长："+(end-start)/1000f + "s");
  }

  public void run() {
    // 性能监控代码
    long start = System.currentTimeMillis();
    System.out.println("I can run ...");
    // 性能监控代码
    long end = System.currentTimeMillis();
    System.out.println("执行时长："+(end-start)/1000f + "s");
  }
}
